﻿Public Class frmConnect

    Private Sub LinkLabel1_LinkClicked(sender As System.Object, e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start("http://wiicraft.codeplex.com/documentation")
    End Sub

    Private Sub btnRedetect_Click(sender As System.Object, e As System.EventArgs) Handles btnRedetect.Click
        btnRedetect.Enabled = False
        WiiController.TryConnect()
        If WiiController.Connected = True Then
            frmMain.Show()
            Me.Close()
        Else
            btnRedetect.Enabled = True
        End If

    End Sub


    Private Sub frmConnect_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        WiiController.TryConnect()
        If WiiController.Connected = True Then
            frmMain.Show()
            Me.Close()
        End If
    End Sub
End Class